package cn.edu.Day08;

public class Local implements Runnable {
//    public int count;
    Person per;
//    public Local(Person per)
//    {
//        this.per=per;
//    }

//    public Local() {
//        this.count=count;
//    }

    @Override
    public void run() {
        //实现站点卖票的逻辑
//        for (int i = 10; i >0 ; i--) {
//            System.out.println(per.name+"在站点买票"+i);
//        }
        while (ThreadTest.count>0)
        {
            System.out.println("在站点买票"+ThreadTest.count);
            ThreadTest.count--;
        }


    }
}
